<template>
    <h2>我是子组件</h2>
</template>

<script>
export default {
  beforeCreate() {
    console.log("========子组件beforeCreate===========");
  },
  created() {
    console.log("========子组件created===========");
  },
  beforeMount() {
    console.log("========子组件beforeMount===========");
  },
  mounted() {
    console.log("========子组件mounted===========");
  },
  beforeUpdate() {
    console.log("========子组件beforeUpdate===========");
  },
  updated() {
    console.log("========子组件updated===========");
  },
  beforeDestroy() {
    console.log("========子组件beforeDestroy===========");
  },
  destroyed() {
    console.log("========子组件destroyed===========");
  },
};
</script>

<style></style>
